<div>
    <table ng-if="orgInfos" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover dataTable">
        <thead>
        <tr>
            <th>名称<input type="checkbox" ng-model="allCheck" ng-click="checkAll(allCheck)"></th>
            <th>别名</th>
            <th>英文名</th>
            <th>主页</th>
            <th>身份标签</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="showRow($index)" ng-repeat="item in orgCompanyList|orderBy:orderList:reverse|filter:infosFilter">
            <td class="oneIn8" ng-init="showEditButton=false" ng-mouseenter="showEditButton=true" ng-mouseleave="showEditButton=false">
                <input type="checkbox" ng-model="item.$$checked">
                {{item.companyBaseInfo.name|validateLinkStr}}
                <button class="btn btn-xs" ng-show="showEditButton" ng-click="editItemDetail(item.id)"><i class="fa fa-edit"></i>详细</button>
            </td>
            <td class="oneIn8">{{item.companyBaseInfo.alias}}</td>
            <td class="oneIn8">{{item.companyBaseInfo.englishName}}</td>
            <td class="oneIn8">{{item.employeeInfo.webSite}}</td>
            <td class="oneIn8">
                <button ng-disabled="true" ng-if="allMembershipIdList[m].name" class="btn btn-xs btn-success" ng-repeat="m in item.$$memberships">{{allMembershipIdList[m].name}}</button>
            </td>
        </tr>
        </tbody>
    </table>
    <table ng-if="!orgInfos" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover dataTable">
        <thead>
        <tr>
            <th class="oneIn5">名称</th>
            <th class="oneIn5">英文名</th>
            <th class="oneIn5">上传该联系人到公司</th>
            <th class="oneIn5">以本地数据为准同步</th>
            <th class="oneIn5">以公司数据为准同步</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in userCompanyList|orderBy:orderList:reverse|filter:infosFilter">
            <td>{{item.companyBaseInfo.name|validateLinkStr}}</td>
            <td>{{item.companyBaseInfo.englishName}}</td>
            <td class="text-center">
                <button ng-click="linkupCompany(item,false)" class="btn btn-xs btn-success" ng-if="!item.linkedOrgCompanyId">链接到公司</button>
                <button ng-click="breakLinkCompany(item)" class="btn btn-xs btn-warning" ng-if="item.linkedOrgCompanyId">取消链接</button>
            </td>
            <td class="text-center"><button ng-click="linkupCompany(item,false)" ng-if="item.linkedOrgCompanyId" class="btn btn-xs btn-success">同步数据</button></td>
            <td class="text-center"><button ng-click="linkupCompany(item,true)" ng-if="item.linkedOrgCompanyId" class="btn btn-xs btn-success">同步数据</button></td>
        </tr>
        </tbody>
    </table>

</div>